package com.project.service.impl;

import com.project.daos.ManagementMapper;
import com.project.entity.Management;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class ManagementServiceImpl implements ManagementMapper {
    @Autowired
    private ManagementMapper managementMapper;
    @Override
    public List<Management> getAllManagement() {
        return managementMapper.getAllManagement();
    }

    @Override
    public List<Management> getManagementByUid(Integer uid) {
        return managementMapper.getManagementByUid(uid);
    }
}
